//
//  FFWalletRechargeVM.h
//  LLWallet
//
//  Created by tt on 2020/8/17.
//

#import <WuKongBase/WuKongBase.h>
#import "WKButtonItemCell.h"
#import "FFRechargeMoneyGridCell.h"
#import "FFPayResultManager.h"
NS_ASSUME_NONNULL_BEGIN

@protocol FFWalletRechargeVMDelegate <NSObject>

@optional


/// 充值金额选中
/// @param money <#money description#>
-(void) ff_walletRechargeMoneyClick:(FFRechargeMoney*)money;


/// 充值金额输入改变
/// @param money <#money description#>
-(void) ff_walletRechargeMoneyChange:(CGFloat)money;


/// 支付类型选中
-(void) ff_walletRechargePayTypeSelected;


/// 充值
-(void) ff_walletRecharge;


@end

@interface FFWalletRechargeVM : WKBaseTableVM

@property(nonatomic,copy) NSString *paySID; // 支付的唯一标记

@property(nonatomic,weak) id<FFWalletRechargeVMDelegate> delegate;

@property(nonatomic,assign) NSInteger payType; // 
/// 充值
-(AnyPromise*) recharge;

@end


// 充值渠道
@interface FFRechargeChannel : WKModel

@property(nonatomic,copy) NSString *title; // 渠道标题

@property(nonatomic,copy) NSString *icon; // 渠道icon

@property(nonatomic,assign) NSInteger type; // 渠道类型

@end

// 充值配置
@interface FFRechargeConfig : WKModel

@property(nonatomic,strong) NSArray<NSNumber*> *amounts; // 充值金额可选项
@property(nonatomic,assign) NSInteger walletAmount; // 钱包金额
@property(nonatomic,strong) NSArray<FFRechargeChannel*> *channels; // 充值渠道

@end

NS_ASSUME_NONNULL_END
